<?php

class ZFWork_Form_Decorator_Label extends Zend_Form_Decorator_Label {

	public function render($content) {
		$element = $this->getElement();
		if ($element->hasErrors()) $this->setOption ('class', 'error');
		$this->_element->setLabel($this->_element->getLabel() . ':');
		return parent::render($content);
	}

}